package com.yhs.YShop.model;

import java.io.Serializable;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 管理员表
 * 
 * @author Administrator
 *
 */
@Document
//@org.springframework.data.elasticsearch.annotations.Document(indexName = "manageindex", type = "managetype")
public class Manage implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3644377829823230059L;
	@Id
	private Integer id;// 用户ID
	private String userName;// 用户名
	private String passWord;// 密码 md5(md5()+创建时间)
	private String avatar;// 头像
	private String nickname;// 昵称
	private String ctime;// 创建时间
	private String utime;// 修改时间
	private Integer status;// 1 正常 2 停用

	@Override
	public String toString() {
		return "Manage [id=" + id + ", userName=" + userName + ", passWord=" + passWord + ", avatar=" + avatar
				+ ", nickname=" + nickname + ", ctime=" + ctime + ", utime=" + utime + ", status=" + status + "]";
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassWord() {
		return passWord;
	}

	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getCtime() {
		return ctime;
	}

	public void setCtime(String ctime) {
		this.ctime = ctime;
	}

	public String getUtime() {
		return utime;
	}

	public void setUtime(String utime) {
		this.utime = utime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

}
